const { get, post, put, delete: del } = require('./request');

// 手机设备相关API
const phoneApi = {
  // 获取手机列表
  getPhoneList: (params) => get('/api/phone/page', params),
  
  // 获取手机详情
  getPhoneDetail: (id) => get(`/api/phone/${id}`)
};

// 固件版本相关API
const versionApi = {
  // 获取版本列表
  getVersionList: (params) => get('/api/version/page', params),
  
  // 获取版本详情
  getVersionDetail: (id) => get(`/api/version/${id}`)
};

// 下载链接相关API
const downloadApi = {
  // 获取下载链接
  getDownloadLinks: (versionId) => get(`/api/download/version/${versionId}`)
};

module.exports = {
  phoneApi,
  versionApi,
  downloadApi
}; 